<template>
  <div class="search-result-count">
    <p v-if="searchResults.length>0">共计{{ searchResults.length }}条结果</p>
  </div>
</template>

<script setup>
import { ref } from 'vue';

const props = defineProps({
  searchResults: {
    type: Array,
    required: true,
    default: () => []
  }
});
</script>

<style scoped lang="scss">
.search-result-count {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  p {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
  }
}
</style>